package com.systop.asset.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.systop.asset.service.Treeable;

/**
 * 资产分类对象 asset_categories
 *
 * @author mc
 * @date 2025-06-24
 */
public class AssetCategories extends BaseEntity  implements Treeable<AssetCategories>
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private Long id;

    /** 上级分类ID */
    private Long parentId;

    /** 分类名称 */
    private String name;


    /**构造子节点**/
    private List<AssetCategories> children;

    public List<AssetCategories> getChildren() {
        return children;
    }

    public void setChildren(List<AssetCategories> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }



}
